﻿using Microsoft.AspNetCore.Identity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Ids4.Api.Data.Entities
{
    [Table("user")]
    public class ApplicationUser : IdentityUser<int>
    {

        public ApplicationUser()
        {
            CreatedOn = DateTime.Now;
        }
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Key]
        public override int Id { get; set; }

        public string Password { get; set; } = "";
        public string Name { get; set; } = "";
        public DateTime? CreatedOn { get; set; }
        public string Department { get; set; } = "";
        public string Picture { get; set; } = "";
    }
}
